package aqua.smile.api.controller;


import aqua.smile.api.entity.CoreApp;
import aqua.smile.api.service.CoreAppService;
import aqua.smile.api.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * app表控制层
 *
 * @author xia
 * @since 2021-07-28
 */
@RequestMapping("/coreApp")
@RestController
@Slf4j
public class CoreAppController  {

    @Resource
    private CoreAppService baseService;

    @GetMapping("/getByAppId")
    public Result<CoreApp> getByAppId(@RequestParam("appId") String appId) {
        CoreApp app = baseService.getByAppId(appId);
        return new Result<>(app);
    }


}
